package com.example.pengxiangedupay.common.utils;

import com.example.pengxiangedupay.entity.FeeStuPaidEntity;

import java.math.BigDecimal;

public class FeeUtils {

    public static BigDecimal getTotalFee(FeeStuPaidEntity feeStuPaid){
        //费用求和
        BigDecimal totalFee = new BigDecimal(0);
        totalFee = totalFee.add(feeStuPaid.getTrainFee());
        totalFee = totalFee.add(feeStuPaid.getClothesFee());
        totalFee = totalFee.add(feeStuPaid.getBookFee());
        totalFee = totalFee.add(feeStuPaid.getHotelFee());
        totalFee = totalFee.add(feeStuPaid.getBedFee());
        totalFee = totalFee.add(feeStuPaid.getInsuranceFee());
        totalFee = totalFee.add(feeStuPaid.getPublicFee());
        totalFee = totalFee.add(feeStuPaid.getCertificateFee());
        totalFee = totalFee.add(feeStuPaid.getDefenseEduFee());
        totalFee = totalFee.add(feeStuPaid.getBodyExamFee());
        return totalFee;

    }
}
